package com.bm.server.dao;

import com.bm.server.dto.RuoomDto;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/19/16:53
 */
public interface RuoomDao {
    @Select("SELECT r.roomid, u.nickName FROM t_ruser AS ru,t_room AS r,t_userinfo AS u WHERE(ru.uid = u.uid) AND ru.rid = r.roomid")
    List<RuoomDto> selectAll();
}
